package com.bblocks.standard;

import com.bblocks.http.converter.EnableExtraConverters;
import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients;
import com.pig4cloud.pig.common.gray.annotation.EnablePigxGray;
import com.pig4cloud.pig.common.security.annotation.EnablePigResourceServer;
import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2;

import com.bblocks.cache.fresh.EnableUnactiveFresh;
import com.bblocks.commswitch.EnableLog;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
* @author pig archetype
* <p>
* 项目启动类
*/
@EnableUnactiveFresh
@EnablePigxGray
@EnableExtraConverters
@EnableLog
@EnablePigSwagger2
@EnablePigResourceServer
@EnablePigFeignClients(extraDecoder=true,basePackages={"com.pig4cloud.pig.admin.api","com.bblocks"})
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.bblocks","com.bblocks.standard","com.pig4cloud.pig.common.core.config","com.bblocks.standard.feign"
        })
@MapperScan("com.bblocks.standard.dao")
public class BblocksstandardApplication {


    public static void main(String[] args) {
        SpringApplication.run(BblocksstandardApplication.class, args);
    }

}
